package com.hsshy.beam.sharding.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@TableName("t_order_item")
public  class OrderItem extends Model {

    @TableId(type = IdType.ID_WORKER)
    private Long orderItemId;
    
    private long orderId;
    
    private int userId;
    
    private String status;

    @Override
    protected Serializable pkVal() {
        return this.orderItemId;
    }

}
